home *** CD-ROM | disk | FTP | other *** search
- Path: sundog.tiac.net!ceylon!news
- From: Brenda <g051286>
- Newsgroups: comp.lang.c
- Subject: Re: CONVERTING INTEGER TO ASCII??????
- Date: 11 Mar 1996 19:31:36 GMT
- Organization: GTE Laboratories Incorporated
- Message-ID: <4i1v2o$rmj@ceylon.gte.com>
- References: <4i17r9$2kn@maltese.eag.unisysgsg.com>
- NNTP-Posting-Host: 138.83.161.16
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 1.1N (X11; I; HP-UX A.09.05 9000/735)
- X-URL: news://132.197.8.2/4i17r9$2kn@maltese.eag.unisysgsg.com
-
- ssadra@maltese.eag.unisysgsg.com (Daniel R. Ascheman) wrote:
- >HI all,
- >
- >I need a way to convert an integer BACK to ascii so I can search for it
- >in a file using the strstr() function in a file. I NEED it as an integer
- >AND as an ascii, is it possible?
- >As you know, strstr() is a char *, char * , so I can't use an int,
- >and itoa() does not exist in UNIX - I am in a slight bind.
-
- [code deleted]
-
- try sprintf().
-
- >thanks,
- >Dan Ascheman
- >
- ><ssadra@maltese.eag.unisysgsg.com>
-
-